package com.iweb.test2;

public class GirlFriendTest {
    public static void main(String[] args) {

        GirlFriend gf1 = new GirlFriend();

        //赋值
        gf1.setName("testName");
        gf1.setAge(18);
        gf1.setGender("girl");

        System.out.println(gf1.getName());
        System.out.println(gf1.getAge());
        System.out.println(gf1.getGender());

        /*gf1.name = "testName";
        gf1.age = 18;
        gf1.gender = "girl";*/

        /*System.out.println(gf1.name);
        System.out.println(gf1.age);
        System.out.println(gf1.gender);*/

       /* gf1.eat();
        gf1.sleep();*/
    }
}
